package test3;


import javax.swing.JOptionPane;

public class Examine {
    Inquire iq = new Inquire();

    public Examine() {
        ko:
        for (int i = 0; i < 52; i++) {
            for (int j = i + 1; j < 52; j++) {
                if (Inquire.num[i] == Inquire.num[j]) {
                    JOptionPane.showMessageDialog(null, "第" + (i + 1) + "号选手与" + (j + 1) + "号选手出现相同票,请重新投票");
                    new Choose();
                    break ko;
                }
            }

        }
    }
}

